// 触发条件
export const TRIGGER_CONDITION_NOT_SUBMIT = 0
export const TRIGGER_CONDITION_NOT_UPDATE = 1
export const TRIGGER_CONDITION_NOT_DELAY = 2
export const TRIGGER_CONDITION_START = 3
export const TRIGGER_CONDITION_URGING = 4

export const TRIGGER_CONDITION_LIST = [
  { value: 3, text: '启动' },
  { value: 4, text: '催办' },
  { value: 0, text: '未提交' },
  // { value: 1, text: '未更新' },
  { value: 2, text: '已延期' },
  
]

export const TRIGGER_CONDITION_MAP = {
  '0': '未提交',
  '1': '未更新',
  '2': '已延期',
  '3': '启动',
  '4': '催办',
}

// 通知方式
export const REMIND_WAY_EMAIL = '0'
export const REMIND_WAY_RUN_WORK = '1'

export const RECEIVE_WAY_LIST = [
  { value: '0', text: '邮件' },
  // { value: '1', text: '润工作' },
]

export const RECEIVE_WAY_MAP = {
  '0': '邮件',
  '1': '润工作',
}

// 接收人类型
export const RECEIVE_TYPE_PERSON = 0
export const RECEIVE_TYPE_GROUP = 1

export const RECEIVE_TYPE_LIST = [
  { value: 0, text: '收件人' },
  { value: 1, text: '收件人组' },
]

// 提醒规则状态
export const RULE_CONFIG_STATE_ON = '0'
export const RULE_CONFIG_STATE_OFF = '1'

export const RULE_CONFIG_STATE_LIST = [
  { value: '0', text: '已开启' },
  { value: '1', text: '已关闭' },
]

export const RULE_CONFIG_STATE_MAP = {
  '0': '已开启',
  '1': '已关闭',
}

// 发送状态
export const SEND_STATE_LIST = [
  { value: '0', text: '成功' },
  { value: '1', text: '失败' },
]

export const SEND_STATE_MAP = {
  '0': '成功',
  '1': '失败',
}

// 规则组状态
export const RULE_GROUP_STATUS_LIST = [
  { value: '0', text: '草稿' },
  { value: '1', text: '生效中' },
  { value: '2', text: '已过期' },
]

export const RULE_GROUP_STATUS_UN_SUBMIT = '0'
export const RULE_GROUP_STATUS_SUBMITED = '1'
export const RULE_GROUP_STATUS_EXPIRED = '2'
// 规则组-保存
export const ACTION_BUTTON_SAVE = '0'
// 规则组-保存并提交
export const ACTION_BUTTON_SAVE_AND_SUBMIT = '1'

// 收件人组状态
export const ADDRESS_GROUP_STATE_MAP = {
  '0': '草稿',
  '1': '生效中',
}
// 草稿
export const ADDRESS_GROUP_STATE_DRAFT = '0'
// 生效中
export const ADDRESS_GROUP_STATE_EFFECTIVE = '1'
export const ADDRESS_GROUP_STATE_LIST = [
  { value: '0', text: '草稿' },
  { value: '1', text: '生效中' },
]
